import React, { Component } from "react";
//var {Button} = require("antd");
import {Button} from "antd";
//import 'antd/lib/button/style/css';
class Cat extends Component{
    constructor(props){
        super(props);
        this.state = {
            title:"小刚",
            data:[{
                a:"1",
                b:2
            }]
        };
        this.name = this.props.name;
    }
    getName(){
        return this.name;
    }
    componentDidMount(){
        console.info(this.props);
    }
    render(){
        return <div>
            <Button>antd button</Button>
        </div>
    }
}
module.exports = Cat;